<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
    <meta content="" name="description"/>
    <meta content="" name="author"/>
    <meta name="MobileOptimized" content="320"/>
    <!-- BEGIN GLOBAL MANDATORY STYLES -->
    <link href="../../resources/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="../../resources/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="../../resources/css/style-metronic.css" rel="stylesheet" type="text/css"/>
    <link href="../../resources/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

    <!-- END GLOBAL MANDATORY STYLES -->
    <!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
    <link href="../../resources/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css" rel="stylesheet"
          type="text/css"/>

    <style>
        .btnBlack {
            display: inline-block;
            background: #000;
            color: #FFF;
            font-size: 13px;
            line-height: 22px;
            border: none;
        }

        .orderBtnReject {
            display: inline-block;
            background: #000;
            color: #FFF;
            font-size: 13px;
            line-height: 22px;
            border: none;
        }

        #table {
            margin-bottom: 320px
        }


    </style>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body onload = "start()">
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title" style="padding-left:15px;margin-top:22px">
            退货
            <small>管理</small>
        </h3>
    </div>

    <div style="margin-left:15px;padding-right:20px;margin-top:-25px">　　　　　
        <table class="table">　　　
            <tr>　　　　　　
                <th>输入订单号：</th>　　　　
            </tr>
            　　　　　
            <tr bgcolor="#e7e9e9">　　　
                <form action="goodsReject.html" method="post" th:action="@{/goods/rejectOrderFind}">
                    <td><input type="text" th:value="${orderId}" id="goodsISBN" name="orderId" maxlength="13"/></td>　　　　　　
                    <td><input id="btnSearch" class="btnBlack" type="submit" value="查询"/></td>
                </form>
            </tr>
            　　　　
        </table>
        　　
    </div>

    <div id="showOrderDetail" class="row">
        <div class="col-md-12" style="padding-left:30px;padding-right:35px">
            <div class="panel panel-info">
                <div class="panel-heading">订单详情</div>
                <table id="table" class="table table-striped table-bordered table-hover datatable">
                    <thread id="item">
                        <th>商品号</th>
                        <th>物品名称</th>
                        <th>数量</th>
                        <th>单价</th>
                        <th>输入退款数量</th>
                        <th>退货原因</th>
                        <th>退款</th>　　　　　　　　
                    </thread>
                    <form action="goodsReject.html" method="post" th:each="orderItem : ${orderItems}" th:action="@{/goods/rejectOrder}">
                        <tbody>
                        <th id="orderNumber" th:text="${orderItem.barcode}"></th>
                        <th id="orderGoodsName" th:text="${orderItem.productName}"></th>
                        <th id="orderGoodsNumber" th:text="${orderItem.productNum}"></th>
                        <th id="orderPrice" th:text="${orderItem.perSellPrice}"></th>
                        <th>
                            <input type="hidden" name="orderId" th:value="${orderId}"/>
                            <input type="hidden" name="productId" th:value="${orderItem.productId}"/>
                            <input type="hidden" name="orderItemId" th:value="${orderItem.id}"/>
                            <input type="text" id="orderInputNumber" name="orderInputNumber"/>
                        </th>
                        <th id="rejectReason" >
                            <select name="rejectReasonId">
                                <option th:each="reason : ${reasons}" th:value="${reason.id}" th:text="${reason.reason}" th:selected="${reason.id == 1}">其他</option>
                            </select>
                        </th>
                        <th><input type="submit" id="orderBtnReject" class="orderBtnReject" value="退款"/></th>
                        </tbody>
                    </form>
                </table>
                　　　　　　　　　　　
            </div>
            　　　　　　　　　　　
        </div>
        　　　　　　　　　
    </div>

    <div>
    </div>
</div>
<script src="../../resources/plugins/jquery-2.1.4.min.js"></script>
<script th:inline="javascript">
    // <![CDATA[

    function start() {
        var str = /*[[${msg}]]*/ 'value';
        if (str != null) {
            alert(str);
        }
    }

    $.ready(function() {


        function isLarge() {

        }
    })

    // ]]>
</script>
</body>
</html>

